/*
 * @Descripttion:
 * @version:
 * @Author: cxguo
 * @Date: 2019-08-02 15:03:05
 * @LastEditors: cxguo
 * @LastEditTime: 2020-07-24 20:52:10
 */
import HttpRequest from './axiosp'

const getDomain = function() {
	const domainMap = {
		dev: "api",
		pro: '../api'
	}
	const env = process.env.NODE_ENV
	return env === 'development' ? domainMap.dev : domainMap.pro
}

const domain = getDomain()
const axiosp = new HttpRequest(domain)
export default axiosp
